Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flag: add support for parsing flag.FlagParser style flags in to_struct[T] #22152

Merged
merged 3 commits into from
Sep 3, 2024

Conversation

larpon
Copy link
Contributor

@larpon larpon commented Sep 3, 2024

This PR adds support for parsing flags that flag.FlagParser also supports (--flag value) - it is something I overlooked when initially implementing the functionality. I am working on simplifying vab's flag handling and bumped into this 🙂

@larpon
Copy link
Contributor Author

larpon commented Sep 3, 2024

I just pushed a minor update + test case to an error message that was worded badly

@spytheman spytheman merged commit 04a3ecf into vlang:master Sep 3, 2024
63 checks passed
@larpon larpon deleted the flag/support-flag-parser-style-flags branch September 3, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants